package com.qmhl.toolposition.api

import com.qmhl.toolposition.api.content.ContentWrapper
import retrofit2.http.Query

interface DefaultNetworkService {

    suspend fun getContent(
        @Query(value = "user_id") userId: String,
        @Query(value = "type") type: Int
    ): ContentWrapper


    companion object {

        fun create(): DefaultNetworkService {
            return NetworkModule.provideRetrofit(NetworkModule.provideOkHttpClient())
                .create(DefaultNetworkService::class.java)
        }
    }
}